package com.day20.test1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test1 {

    public static void main(String[] args) {

        ApplicationContext a=new ClassPathXmlApplicationContext("application.xml");
        B b=(B)a.getBean("b");

        B bb=a.getBean("b",B.class);

        b.print();
        bb.print();
    }

}
